package com.fengzai.service.impl;

import com.fengzai.bean.Product;
import com.fengzai.service.ProductService;

import java.util.concurrent.TimeUnit;

/**
 * Created by  峰仔  on 2017-08-19
 */
public class ProductServiceImpl implements ProductService {
    @Override
    public Product getProductById(String productId) {
        try {
            TimeUnit.SECONDS.sleep(2);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("2------传过来的商品Id:" + productId);
        return new Product("苹果7", 9999.99);
    }
}
